<div class="page-content" >
            
    <div class="panel panel-default">
	 
         
        <div class="panel-body">
            <form id="form" class="form-horizontal"  action="<{:U('settikuNav')}>" autocomplete="off" method="post" novalidate="novalidate">
                <input type="hidden" name="subjectid" value="<{$subjectid}>">
				  
                 
                 
                 <div class="form-group">
                    <label class="col-sm-2 control-label">题型</label>
                    <div class="col-sm-7 mgt10">
																				<volist name="tikuNavArray"   id="vo">
                   <label>   <input type="checkbox" value="<{$key}>" name="tikuNav[]" <{$vo.checked}>  /><{$vo.text}> &nbsp;&nbsp;</label>
																				</volist>
                    </div>
                    <div class="col-sm-3">
                    </div>
                </div>
				
				
				 
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-7">
                        <button type="submit" class="btn btn-primary"   >保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
   

        </div>


 

<div class="modal fade" id="modal_video" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">视频播放</h4>
      </div>
      <div class="modal-body">
	  <div id="videoPlayer"></div>
      </div>
       
    </div>
  </div>
</div>
<style type="text/css">
	/*CC视频上传按钮样式*/
	.video-upload{ position: relative; }
	.video-upload .up-swf-box embed{ position: absolute; top: -1px; left: -1px; }
	.video-progress { display: inline-block; margin-bottom: 0px; width: 200px; vertical-align: middle; }

	.video{ position: relative; }
	.video .play{ display: block; position: absolute; bottom: 10px; right: 10px; line-height: 20px; font-size: 22px; }
	#video_img img{ max-width:100%}
	#selected-file img{ max-width:200px}
</style>

 

<script type="text/javascript" charset="utf-8" src="http://cdn.aodianyun.com/lss/ckplayer/player.js"></script> 
<script>
function _open_video(obj){
	var url=$(obj).attr("url");//视频地址
	var image=$(obj).attr("src");//封面图片
	 var w = "560";//视频宽度
	  var h = "368";//视频高度
	  var flashvars={f:'http://cdn.aodianyun.com/lss/ckplayer/m3u8.swf',a:url,c:0,s:4,i:image,lv:0};
	  var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
	  var video=[url];
	  CKobject.embed('http://cdn.aodianyun.com/lss/ckplayer/ckplayer.swf','videoPlayer','ckplayerFlashBox',w,h,false,flashvars,video,params);
	  
	  $("#modal_video").modal("show");
}

 
</script> 
 <script>
 
$(function(){
    $(".form-horizontal").bootstrapValidator({
        message: '您填入的值不合法',
        fields:{
            knows: {
                message: '知识名称名称',
                validators: {
                    notEmpty: {
                        message: '知识名称不能为空'
                    },
                }
            },
			   xuebazi: {
                message: '学分',
                validators: {
                    notEmpty: {
                        message: '学分不能为空'
                    },
					greaterThan:{
                        value:0,
                        message: '学分不能小于0'
                    },
                }
            },

        }
    });
	
 
});
 </script>

<link rel="stylesheet" href="__PUBLIC__/kindeditor-4.1.10/themes/default/default.css" />
<script charset="utf-8" src="__PUBLIC__/kindeditor-4.1.10/kindeditor-min.js"></script>
<script charset="utf-8" src="__PUBLIC__/kindeditor-4.1.10/lang/zh_CN.js"></script>
 <script type="text/javascript">
    var editor ;
    KindEditor.ready(function(K) {
        editor1 = K.create('textarea[name="pt_note"]', {
            resizeType : 1,
            allowPreviewEmoticons : false,
            allowImageUpload : true,
            formatUploadUrl:false,
   uploadJson : '<php>echo "http://".$_SERVER["HTTP_HOST"];</php><{:api_url("Kindeditor/uploadJson")}>',
            afterBlur: function(){this.sync();}
        });
           
    }); 
		$(function(){
			 $(document).on("videoUploadSuceess",function(e,json){
				  $("#video_url").val(json.data.location);
			 })
		}) 
</script>
 